<!DOCTYPE html>
<html>
<head>
	<title>新增/修改工作流</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/min.css" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/content/style.css" />

	<!-- jQuery AND jQueryUI -->
	<script type="text/javascript" src="__PUBLIC__/Admin/js/libs/jquery/1.6/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/content/main.js"></script>
</head>
<body>
<!-- CONTENT -->
<div id="content" class="white">

  <div class="bloc">
    <div class="title">
		<?php
			$id = I('get.id');
			if($id){
				echo '编辑';
			}else{
				echo '新增';
			}
		?>工作流转建模
	</div>
    <form method="post" action="worktomodechooseoperation">
		<?php
			$id = I('get.id');
			if($id){
				echo "<input type='hidden' name='id' value='".$id."'/>";
			}
		?>
    <div class="content">
      <div class="input">
		<div class="input">
			<label class="label">触发工作流:</label>
			<select name='workflowid' >
				<volist name='workflowlist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" >
						{$vo.name}
					</option>
				</volist>
			</select>
		</div>
		<div class="input">
			<label class="label">触发节点:</label>
			<select name='nodeid' >
				<volist name='nodelist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" >
						{$vo.name}
					</option>
				</volist>
			</select>
		</div>
		<div class="input">
			<label class="label">触发时机:</label>
			<select name='time' >
				<?php
					echo '<option value=0 '; if($object[time]==0){ echo 'selected=selected';	} echo '>到达节点时候</option>';
					echo '<option value=1 '; if($object[time]==1){ echo 'selected=selected';	} echo '>离开节点时候</option>';
				?>
			</select>
		</div>
		<div class="input">
			<label class="label">转移模块:</label>
			<select name='moduleId' >
				<volist name='modelist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" >
						{$vo.name}
					</option>
				</volist>
			</select>
		</div>
		<div class="input">
			<label class="label">数据创建者:</label>
			<select name='creaternodeid' >
				<volist name='userlist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" >
						{$vo.name}
					</option>
				</volist>
			</select>
		</div>
		<div class="input">
			<label class="label">备注:</label>
			<textarea name="remark" style="width: 80%" >{$object['remark']}</textarea>
		</div>
      </div>
      <div class="submit">
        <input type="submit" value="确定保存" class="black"/>
      </div>
    </div>
    </form>
  </div>
</div>
</body>
</html>